#ifndef STYLE_H
#define STYLE_H

// rgb(255, 255, 0)         高亮颜色                           黄
// rgb(141, 141, 141)       默认行选中颜色             灰
// rgb(252, 127, 154)         节假日颜色                       紫
// rgb(255, 102, 17)        统一监控颜色                  橙
// rgb(255, 255, 255)     常规工作日颜色              白
// rgb(102, 238, 68)        白班颜色                          绿
// rgb(102, 153, 255)     夜班颜色                          蓝

// 开始界面中按钮的样式
#define WELCOMEWIDGET_PUSHBUTTON_STYLE                        "QPushButton {"\
                                                                                                            "border: 1px solid #001326;"\
                                                                                                            "border-radius: 3px; "\
                                                                                                            "background-color: #F2F2F2; "\
                                                                                                            "color: #001326; "\
                                                                                                            "font-family: \"kaiti\"; "\
                                                                                                            "font-size: 32pt; "\
                                                                                                            "font-weight: 850;"\
                                                                                                            "}"

// tablewidget 水平表头样式
#define TABLEWIDGET_HORIZONTALHEADER_STYLE                 "QTableWidget{ color:black; \
                                                                                                                                background-color:rgb(224,224,224);\
                                                                                                                                selection-color:rgb(0, 0, 0); \
                                                                                                                                selection-background-color:rgb(	100,149,237);\
                                                                                                                                border:0px;\
                                                                                                                                font: 8pt 'Microsoft YaHei' ;}"\
                                                                                                               "QHeaderView::section:horizontal{ 	/*设置标题(水平的)*/\
                                                                                                                                border: 1px solid rgb(255, 255, 255); 	/*白色间隔*/\
                                                                                                                                border - bottom: 0px;/*下边框不需要颜色*/\
                                                                                                                                color: rgb(2, 65, 132);\
                                                                                                                                background: transparent;\
                                                                                                                                padding - left: 2px;\
                                                                                                                                min - width:60px;}"

// tablewidget 垂直表头样式
#define TABLEWIDGET_VERTICALHEADER_STYLE                 "QTableWidget{ color:black; \
                                                                                                                                background-color:rgb(224,224,224);\
                                                                                                                                selection-color:rgb(0, 0, 0); \
                                                                                                                                selection-background-color:rgb(	100,149,237);\
                                                                                                                                border:0px;\
                                                                                                                                font: 8pt 'Microsoft YaHei' ;}"\
                                                                                                        "QHeaderView::section:vertical{ 	/*设置标题(水平的)*/\
                                                                                                                                border: 1px solid rgb(255, 255, 255); 	/*白色间隔*/\
                                                                                                                                border - bottom: 0px;/*下边框不需要颜色*/\
                                                                                                                                color: rgb(69,137,148);\
                                                                                                                                background: transparent;\
                                                                                                                                padding - left: 2px}"

// MemberSchedule界面tablewidget中 能力值 列的COMBOX的样式
#define TABLEWIDGET_MEMBER_COMBOBOX_STYLE            "QComboBox {"\
                                                                                                            "color:black;"\
                                                                                                            "background-color:white;"\
                                                                                                            "outline:0px;"\
                                                                                                            "border:0px;"\
                                                                                                            "}"\
                                                                                                    "QComboBox::down-arrow  {"\
                                                                                                            "width: 15px;"\
                                                                                                            "background: transparent;"\
                                                                                                            " padding: 0px 0px 0px 0px;"\
                                                                                                            " image: url(:/resource/Images/ComboboxDownArrow1.png);"\
                                                                                                            "} "\
                                                                                                    "QComboBox::drop-down {"\
                                                                                                            "subcontrol-origin: padding;"\
                                                                                                            "subcontrol-position: top right;"\
                                                                                                            "width: 15px;"\
                                                                                                            "border-left-width: 1px;"\
                                                                                                            "border-left-color: darkgray; "\
                                                                                                            "border-left-style: dashed;"\
                                                                                                            "border-top-right-radius: 3px;"\
                                                                                                            "border-bottom-right-radius: 3px;"\
                                                                                                             "}"


// MemberSchedule界面tablewidget中 带教人员 的COMBOX的样式
#define TABLEWIDGET_MEMBER_TEACHER_COMBOBOX_STYLE            "QComboBox {"\
                                                                                                            "color:black;"\
                                                                                                            "background-color:silver;"\
                                                                                                            "outline:0px;"\
                                                                                                            "border:0px;"\
                                                                                                            "}"\
                                                                                                    "QComboBox::down-arrow  {"\
                                                                                                            "width: 15px;"\
                                                                                                            "background: transparent;"\
                                                                                                            " padding: 0px 0px 0px 0px;"\
                                                                                                            " image: url(:/resource/Images/ComboboxDownArrow2.png);"\
                                                                                                            "} "\
                                                                                                    "QComboBox::drop-down {"\
                                                                                                            "subcontrol-origin: padding;"\
                                                                                                            "subcontrol-position: top right;"\
                                                                                                            "width: 15px;"\
                                                                                                            "border-left-width: 1px;"\
                                                                                                            "border-left-color: darkgray; "\
                                                                                                            "border-left-style: dashed;"\
                                                                                                            "border-top-right-radius: 3px;"\
                                                                                                            "border-bottom-right-radius: 3px;"\
                                                                                                             "}"

// MemberSchedule界面tablewidget中每行删除按钮的样式
#define TABLEWIDGET_DELETE_PUSHBUTTON_STYLE             "QPushButton {"\
                                                                                                            "border: 2px solid #8f8f91;"\
                                                                                                            "border-radius: 6px; "\
                                                                                                            "background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde); "\
                                                                                                            "min-width: 60px;"\
                                                                                                                "}"

// MemberSchedule界面tablewidget中底下按钮的样式
#define TABLEWIDGET_PUSHBUTTON_STYLE                        "QPushButton {"\
                                                                                                            "border: 1px solid #001326;"\
                                                                                                            "border-radius: 3px; "\
                                                                                                            "background-color: #F2F2F2; "\
                                                                                                            "color: #001326; "\
                                                                                                            "font-family: \"Microsoft YaHei\"; "\
                                                                                                            "font-size: 16pt; "\
                                                                                                            "font-weight: 450;"\
                                                                                                            "}"

// MemberSchedule界面 默认选中行的背景色样式
#define SELETE_ROW_DEFAULT_BACKGROUND_STYLE         "selection-background-color:rgb(141, 141, 141)"

// MemberSchedule界面 高亮行的背景色样式
#define SELETE_ROW_HIGHLIGHT_BACKGROUND_STYLE     "selection-background-color:rgb(255, 255, 0)"

// dateset界面dialog按钮的样式
#define DATESET_DIALOG_PUSHBUTTON_STYLE             "QPushButton {"\
                                                                                                            "font-size: 14px;"\
                                                                                                            "border: 2px solid #8f8f91;"\
                                                                                                            "border-radius: 6px; "\
                                                                                                            "background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde); "\
                                                                                                            "min-width: 60px;"\
                                                                                                            "}"\
                                                                                                            "QPushButton:pressed{"\
                                                                                                                "font-size: 14px;"\
                                                                                                                "color: black;"\
                                                                                                                "border-color: blueviolet;"\
                                                                                                                "background-color: rgba(176, 224, 230,0.7);"\
                                                                                                           " }"

// dateset界面dialog下拉框的样式
#define DATESET_DIALOG_COMBOBOX_STYLE   "QComboBox {"\
                                                                                                        "color:black;"\
                                                                                                        "background-color:white;"\
                                                                                                        "outline:0px;"\
                                                                                                        "border:0px;"\
                                                                                                        "}"\
                                                                                                "QComboBox::down-arrow  {"\
                                                                                                        "width: 15px;"\
                                                                                                        "background: transparent;"\
                                                                                                        " padding: 0px 0px 0px 0px;"\
                                                                                                        " image: url(:/resource/Images/DatesetDialogComboboxDownArrow.png);"\
                                                                                                        "} "\
                                                                                                    "QComboBox::drop-down {"\
                                                                                                        "subcontrol-origin: padding;"\
                                                                                                        "subcontrol-position: top right;"\
                                                                                                        "width: 15px;"\
                                                                                                        "border-left-width: 1px;"\
                                                                                                        "border-left-color: darkgray; "\
                                                                                                        "border-left-style: dashed;"\
                                                                                                        "border-top-right-radius: 3px;"\
                                                                                                        "border-bottom-right-radius: 3px;"\
                                                                                                         "}"

#define DATESET_TABLE_WORKDAY_COLOR                 QColor(255, 255, 255)
#define DATESET_TABLE_HOLIDAY_COLOR                   QColor(252, 127, 154)
#define DATESET_TABLE_SPECIFYDAY_COLOR             QColor(255, 102, 17)

// dateset界面dialog下拉框的样式
#define DATESET_WORKACTIONDIALOG_CHECKBOX_STYLE "QCheckBox::indicator:unchecked \
                                                                                                            {        \
                                                                                                                width: 30px;\
                                                                                                                height: 30px;\
                                                                                                                border-image: url(:/resource/Images/DatesetDialogUnchecked.png);\
                                                                                                            }\
                                                                                                            QCheckBox::indicator:checked \
                                                                                                            {\
                                                                                                                width: 30px;\
                                                                                                                height: 30px;\
                                                                                                                border-image: url(:/resource/Images/DatesetDialogChecked.png)\
                                                                                                            }"

#define SCHEDULE_TABLE_COMMON_ITEM_COLOR           QColor(255, 255, 255)
#define SCHEDULE_TABLE_SPECIFY_ITEM_COLOR             QColor(222, 211, 140)

// 白、夜班颜色
  #define SCHEDULE_TABLE_DAY_ITEM_COLOR           QColor(102, 238, 68)
  #define SCHEDULE_TABLE_NIGHT_ITEM_COLOR             QColor(102, 153, 255)

#endif // STYLE_H
